<?php
/**
 *
 * Author: lirong
 * Date: 2017/9/26
 * Time: 21:35
 */

namespace backend\models;


use yii\base\Model;

class WebManageAdminForm extends Model{

    public $id;
    public $username;
    public $password;

    public $rememberMe = true;

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            // username and password are both required
            [['username', 'password'], 'required'],
            // rememberMe must be a boolean value
            ['rememberMe', 'boolean'],
            // password is validated by validatePassword()
         //   ['password', 'validatePassword'],
        ];
    }

    public function attributeLabels()
    {
        return [
            'username'=>'用户名',
            'password'=>'密码',

        ];
    }


}